
<?php 
if(count($content_cat['product']) ==0){
echo '<h2>               Chưa có sản phẩm nào trong danh mục: '.$content_cat['cat']['category_name'].' </h2>';}
else {
	echo '<h3>'.$content_cat['cat']['category_name'].'</h3>';
	foreach ($content_cat['product'] as $product) {
					

echo '<div class="post">
	<div class="post-img"><a href="'.$frontend.'single_product/'.$product['product_id'].'"> <img src="'.base_url().'public/images/'.$product['product_image'].'" alt="" width="200" height="130"></a></div>
	<div class="excerpt">
		<h2><a href="'.$frontend.'single_product/'.$product['product_id'].'">'.$product['product_name'].' </a></h2>
		<div class="post-info"> <span class="fr"><a href="#">View: '.$product['no_of_time_viewed'].'</a></span>'.unix_to_human((int)$product['post_at']).'</a></div>
		<p>'.word_limiter($product['product_article'],25).'<a href="#" class="read">read</a>
		</p>
	</div>
</div>' ;
}


}	

?>
			
             